package com.bird.extension.pattern.abstractfactory;

import com.bird.extension.pattern.simpleFactory.entity.DellMouse;
import com.bird.extension.pattern.simpleFactory.entity.Mouse;

/**
 * @Author: sijunqiang
 * @Date: 2020/4/4 11:49
 * @Description: define dell computer factory to production keyBoard and Mouse module
 */
public class DellComputerFactory implements ComputerFactory {
    /**
     * <P>override the method of the parent class. custom Define  create mouse</P>
     *
     * @return
     */
    @Override
    public Mouse createMouse() {
        return new DellMouse();
    }

    /**
     * <P>override the method of the parent class. custom Define  create keyBoard</P>
     *
     * @return
     */
    @Override
    public KeyBoard createKeyBord() {
        return new DellKeyBoard();
    }
}
